import pandas as pd


def read_raw_data():
    df_btc = pd.read_csv('data/BCHAIN-MKPRU.csv')
    df_gold = pd.read_csv('data/LBMA-GOLD.csv')
    df = pd.merge(df_btc, df_gold, how='outer')
    df = df.rename(columns={'Date': 'date'})
    df = df.rename(columns={'Value': 'btc'})
    df = df.rename(columns={'USD (PM)': 'gold'})
    print(df)
    df.to_csv('data/all.csv')
    return df


def load_data():
    return pd.read_csv('data/all.csv')
